package com.cjx.minio.dto;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 *@Author cjunxian
 * @date 2020/09/24 15:52:23
 * @doc Minio Bucket访问策略配置
 * @version 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
public class BucketPolicyConfigDto {

  private String Version;
  private List<Statement> Statement;

  @Data
  @EqualsAndHashCode(callSuper = false)
  @Builder
  public static class Statement {
    private String Effect;
    private String Principal;
    private String Action;
    private String Resource;
  }
}
